using Microsoft.AspNetCore.Mvc;
using Vin.AspNetCore.Core.Controller;

namespace Exception.Logger.WebApi.Tests.Controllers;

public class TestController : VinBaseController
{
    [HttpGet("/test")]
    public async Task<IActionResult> Test()
    {
        Logger.LogInformation("测试异常");
        Uri uri = new Uri("http://www.baidu.com");
        uri = null;
        return Ok(uri.Host);
        throw new System.Exception("测试异常");
    }
}